package org.zhigong.dao;

import org.apache.ibatis.annotations.Param;
import org.zhigong.entity.Menu;
import org.zhigong.entity.Role;

import java.util.List;

/**
 * Created by Administrator on 2018/5/9 0009.
 */
public interface RoleDao {

    int insertRole(Role role);

    int deleteRole(@Param("id") Long id);

    int updateRole(Role role);

    Role queryById(@Param("id") Long id);

    List<Role> selectByPage(Role role);

    List<Menu> getUnselectedMenu(@Param("id") Long id);

    List<Role> getAll();

}
